package com.label.Model.Do;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.util.Date;

@TableName("message_info")
@Data
public class MessageInfo {

    @TableId(value = "message_info_id",type = IdType.ASSIGN_ID)
    private Long messageInfoId;

    @TableField("message_title")
    private String messageTitle;

    @TableField("message_content")
    private String messageContent;

    @TableField(value = "create_time",fill = FieldFill.INSERT)
    private Date createTime;

    @TableField("message_link")
    private String messageLink;

    public MessageInfo(){}

    public MessageInfo(String messageTitle,String messageContent){
        this.messageTitle=messageTitle;
        this.messageContent=messageContent;
    }
}
